package com.song.tools.songtest.dao.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;


/**
 * <p>
 * 操作日志表
 * </p>
 *
 * @author song tools
 * @since 2024-07-16
 */
@Getter
@Setter
@TableName("operate_log")
@Schema(name = "OperateLog", description = "操作日志表")
public class OperateLog implements Serializable {
    @Serial
    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @Schema(description = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @Schema(description = "日志唯一值")
    private Long logId;

    @Schema(description = "查询值，例如：订单号")
    private String queryId;

    @Schema(description = "模块")
    private String module;

    @Schema(description = "操作类型")
    private String logType;

    @Schema(description = "日志内容")
    private String context;

    @Schema(description = "附录")
    private String ext;

    @Schema(description = "修改人手机号")
    private String userPhone;

    @Schema(description = "创建人")
    private String createUser;

    @Schema(description = "创建人ID")
    private String createUserId;

    @Schema(description = "创建时间")
    private LocalDateTime createTime;
}
